package cn.yunhe.entity;

import lombok.Data;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@Data
@Component
public class Zong {
    @Resource
    private BuMen buMen;
    @Resource
    private Person person;
    @Resource
    private Address address;

    public void getZong() {
        buMen.bumen();
        System.out.println("我们分别叫");
        List l1 = person.listPer();
        for (int i = 0; i < l1.size(); i++) {
            System.out.println(l1.get(i));
        }
        System.out.println("我们分别来自");
        List l2 = address.diZhi();
        for (int i = 0; i < l2.size(); i++) {
            System.out.println(l2.get(i));
        }

    }

}
